﻿"""getDiff.py 数据 比较数据
结果为，数据不在比较数据里面的数据
"""
import sys
 
data, compare=sys.argv[1],sys.argv[2]
file_object = open(compare)
try:
     lines_seen = file_object.read()
finally:
     file_object.close()
	 
outfile = open("3.txt", "w")
for line in open(data, "r"):
    if line not in lines_seen: 
        outfile.write(line)
outfile.close()